
#include "qstatusbarplugin.h"


QStatusBarPlugin::QStatusBarPlugin(QObject *parent)
: QObject(parent)
{
   initialized = false;
}

void QStatusBarPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (initialized)
        return;

    initialized = true;
}

bool QStatusBarPlugin::isInitialized() const
{
    return initialized;
}

QWidget *QStatusBarPlugin::createWidget(QWidget *parent)
{
  return new QStatusBar(parent);
}

QString QStatusBarPlugin::name() const
{
    return "QStatusBar";
}

QString QStatusBarPlugin::group() const
{
    return "Qt";
}

QIcon QStatusBarPlugin::icon() const
{
    return QIcon(":/rsc/pripares.png");
}

QString QStatusBarPlugin::toolTip() const
{
    return "QStatusBar";
}

QString QStatusBarPlugin::whatsThis() const
{
    return "";
}

bool QStatusBarPlugin::isContainer() const
{
    return false;
}

QString QStatusBarPlugin::domXml() const
{
    return "<widget class=\"QStatusBar\" name=\"statusBar\">\n"
           " <property name=\"geometry\">\n"
           "  <rect>\n"
           "   <x>0</x>\n"
           "   <y>0</y>\n"
           "   <width>75</width>\n"
           "   <height>25</height>\n"
           "  </rect>\n"
           " </property>\n"
           " <property name=\"toolTip\" >\n"
           "  <string>A status bar</string>\n"
           " </property>\n"
           " <property name=\"whatsThis\" >\n"
           "  <string>A status bar.</string>\n"
           " </property>\n"
           "<property name=\"sizePolicy\" >\n"
           " <sizepolicy>\n"
           "  <hsizetype>5</hsizetype>\n"
           "  <vsizetype>0</vsizetype>\n"
           "  <horstretch>0</horstretch>\n"
           "  <verstretch>0</verstretch>\n"
           " </sizepolicy>\n"
           "</property>\n"
           "</widget>\n";
}

QString QStatusBarPlugin::includeFile() const
{
    return "QStatusBar";
}

QString QStatusBarPlugin::codeTemplate() const
{
    return "";
}

Q_EXPORT_PLUGIN(QStatusBarPlugin)
//Q_EXPORT_PLUGIN2(PStyledButton, QStatusBarPlugin)
